<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
  let people = {
    name:"余涛",
    age:22,
    gender:"男"
  }

  console.log(people);
  let json =JSON.stringify(people);
  console.log(json);

  console.log("==============")
  let parse = JSON.parse(json);
  console.log(parse);

</script>

<body>

</body>
</html>